SftTree/OCX 7.0

SftTreeCell.AttachContentWindow Method

Softel vdm, Inc.

Attaches a content window to the cell.

Syntax       

VB.NET

object.AttachContentWindow(ByVal Window As Integer, ByVal Style As SftTreeContentWindowStyleConstants)

VB

object.AttachContentWindow(ByVal Window As OLE_HANDLE, ByVal Style As SftTreeContentWindowStyleConstants)

C#.NET

void object.AttachContentWindow(int Window, SftTreeContentWindowStyleConstants Style);

VC++

HRESULT object->AttachContentWindow(OLE_HANDLE Window, enum SftTreeContentWindowStyleConstants Style);

C

HRESULT object->raw_AttachContentWindow(OLE_HANDLE Window, enum SftTreeContentWindowStyleConstants Style);

Delphi

procedure object.AttachContentWindow(Window : Cardinal, Style : TOleEnum);

object

A SftTreeCell object.

Window

The window handle of the window to use for the cell as a content window. Specify NULL/Nothing to clear the cell's content window, so the cell's regular contents are shown instead.

Style

Defines options for the content window. Values of the following tables can be combined and used as Style value:

Name

Value

Description

contentWindowSftTreeNone

0

None - No special handling.

contentWindowSftTreeKeepDisabled

1

Keep Disabled - The content window is always disabled. A content window is normally enabled and disabled as it is made visible or hidden. When contentWindowSftTreeKeepDisabled is specified, the content window is always disabled, even when it is visible.

contentWindowSftTreeKeepSize

2

Keep Size (Variable Height Tree Control) - The original size of the content window is preserved and the cell size adjusts accordingly. While a column can still be smaller or larger than the content window width, the content window is not resized, it is merely clipped. Without contentWindowSftTreeKeepSize, a content window is resized in height and width to fit within the cell. contentWindowSftTreeKeepSize has no effect in a fixed height tree control.

Comments

The AttachContentWindow method attaches a content window to the cell.

If a content window is attached to a cell, the cell's regular contents (e.g., Cell.Text) are not shown.

The Cell.GetContentWindow method can be used to retrieve a cell's current content window settings.

See Also  SftTreeCell Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com